﻿using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xtra.domain.Subsonic3 {
    [DataContract]
    [KnownType("GetBaseEntityTypes")]
    public class BaseEntity {
        //[DataMember]
        //public string TypeName { get; set; }

        //public BaseEntity() {
        //    TypeName = this.GetType().Name;
        //}
        public static Type[] GetBaseEntityTypes() {
            // If you have few known types use this
            return new Type[] { typeof(Language), typeof(City) };

            // If your "real" types are likely to change/increase over a period of time,
            // use reflection to get the list of types
        }
    }
}
